#content-title
  %h1 Ruby Event Listing Application
  %p This is a prototype social event listing application. Here is a list of the events currently in the system
%ul#event-listings
  - unless @category.events.blank?
    - @category.events.each do |thing_thats_happening|
      %li.listing
        %a{:href => (thing_thats_happening.is_a?(Series) ? one_series_url(thing_thats_happening) : event_url(thing_thats_happening)) }= thing_thats_happening.name
        %table
          %tr
            %th Time:
            %td= thing_thats_happening.start_time 
          %tr
            %th Location: 
            %td= thing_thats_happening.place
        %p= thing_thats_happening.description
  - else
    %li.listing
      %p There are no events in this category   